<?php

session_start();

require "include/beEngine.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";



$main = new Skin("dipartimento");

#$content = new Content($usersEntity, $roleEntity);

$content = new Content($usersEntity, $roleEntity, $usersGroupsRelation);
$content->setParameter("users_groups_id_groups", 4);

$content->setStyle(HIERARCHICAL);
$content->setOrderFields("role.position", "role", "username", "name", "surname", "phone", "email");
//$content->copy("users.username", "users_username_2"); bug corretto, Fabio

$content->setPresentation("role_name_pl", "users_username", "users_name", "users_surname", "users_phone", "users_email", "users_username_2");

$content->setFilter("users.active = '*'");

$main->setContent("body", $content->get());
$main->close();  

?>